#include "amostraExponencial.h"
#include <cmath>

double amostraExponencial (double lambda) {
	
	double u = (rand()%100) / 100;
	return (-std::log(u)/lambda);
}